home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 05.zip
/
BS1 part 5
/
Ami-Back .adf
/
Rexx
/
ABScript.rexx
Wrap
OS/2 REXX Batch file
|
1992-07-01
|
1KB
|
59 lines
/*
* Test rexx script for Ami-Back
*
*
* WARNING * * WARNING *
*
* Make sure your configuration file is setup for a SAFE backup and restore
* before running this script. If not may not like the results
*
*/
Options FailAt 100
Options Results
/*-----------------------------*/
/* Put Ami-Back in server mode */
/*-----------------------------*/
Address COMMAND "Run Ami-Back REXXSERV"
/*-----------------------------------------*/
/* Wait for AmiBackRexx port to be created */
/*-----------------------------------------*/
do while ~SHOW(Ports, AmiBackRexx)
nop
end
/*-----------------------------*/
/* Set address to AmiBack port */
/*-----------------------------*/
Address AmiBackRexx
/*----------------------------------------*/
/* Example to Load new configuration file */
/*----------------------------------------*/
LOAD "s:ami-back.config"
if rc > 0 then say 'Error: 'AMIBACKREXX.LASTERROR
/*---------------------------*/
/* Example to start a backup */
/*---------------------------*/
BACKUP
if rc > 0 then say 'Error: 'AMIBACKREXX.LASTERROR
/*----------------------------*/
/* Example to start a restore */
/*----------------------------*/
RESTORE
if rc > 0 then say 'Error: 'AMIBACKREXX.LASTERROR
/*--------------------------*/
/* Example to Quit program */
/*--------------------------*/
QUIT
if rc > 0 then say 'Error: 'AMIBACKREXX.LASTERROR